Optimal. Leaf size=80 \[ -\frac{2 e \sqrt{d^2-e^2 x^2}}{d x}-\frac{\sqrt{d^2-e^2 x^2}}{2 x^2}-\frac{3 e^2 \tanh ^{-1}\left (\frac{\sqrt{d^2-e^2 x^2}}{d}\right )}{2 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.108883, antiderivative size = 80, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 27, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.185, Rules used = {1807, 807, 266, 63, 208} \[ -\frac{2 e \sqrt{d^2-e^2 x^2}}{d x}-\frac{\sqrt{d^2-e^2 x^2}}{2 x^2}-\frac{3 e^2 \tanh ^{-1}\left (\frac{\sqrt{d^2-e^2 x^2}}{d}\right )}{2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1807
Rule 807
Rule 266
Rule 63
Rule 208
Rubi steps
\begin{align*} \int \frac{(d+e x)^2}{x^3 \sqrt{d^2-e^2 x^2}} \, dx &=-\frac{\sqrt{d^2-e^2 x^2}}{2 x^2}-\frac{\int \frac{-4 d^3 e-3 d^2 e^2 x}{x^2 \sqrt{d^2-e^2 x^2}} \, dx}{2 d^2}\\ &=-\frac{\sqrt{d^2-e^2 x^2}}{2 x^2}-\frac{2 e \sqrt{d^2-e^2 x^2}}{d x}+\frac{1}{2} \left (3 e^2\right ) \int \frac{1}{x \sqrt{d^2-e^2 x^2}} \, dx\\ &=-\frac{\sqrt{d^2-e^2 x^2}}{2 x^2}-\frac{2 e \sqrt{d^2-e^2 x^2}}{d x}+\frac{1}{4} \left (3 e^2\right ) \operatorname{Subst}\left (\int \frac{1}{x \sqrt{d^2-e^2 x}} \, dx,x,x^2\right )\\ &=-\frac{\sqrt{d^2-e^2 x^2}}{2 x^2}-\frac{2 e \sqrt{d^2-e^2 x^2}}{d x}-\frac{3}{2} \operatorname{Subst}\left (\int \frac{1}{\frac{d^2}{e^2}-\frac{x^2}{e^2}} \, dx,x,\sqrt{d^2-e^2 x^2}\right )\\ &=-\frac{\sqrt{d^2-e^2 x^2}}{2 x^2}-\frac{2 e \sqrt{d^2-e^2 x^2}}{d x}-\frac{3 e^2 \tanh ^{-1}\left (\frac{\sqrt{d^2-e^2 x^2}}{d}\right )}{2 d}\\ \end{align*}
Mathematica [A] time = 0.271579, size = 122, normalized size = 1.52 \[ \frac{e \left (-\frac{4 d \sqrt{d^2-e^2 x^2}}{x}-2 d e \tanh ^{-1}\left (\frac{\sqrt{d^2-e^2 x^2}}{d}\right )-e \sqrt{d^2-e^2 x^2} \left (\frac{d^2}{e^2 x^2}+\frac{\tanh ^{-1}\left (\sqrt{1-\frac{e^2 x^2}{d^2}}\right )}{\sqrt{1-\frac{e^2 x^2}{d^2}}}\right )\right )}{2 d^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.055, size = 86, normalized size = 1.1 \begin{align*} -{\frac{3\,{e}^{2}}{2}\ln \left ({\frac{1}{x} \left ( 2\,{d}^{2}+2\,\sqrt{{d}^{2}}\sqrt{-{x}^{2}{e}^{2}+{d}^{2}} \right ) } \right ){\frac{1}{\sqrt{{d}^{2}}}}}-{\frac{1}{2\,{x}^{2}}\sqrt{-{x}^{2}{e}^{2}+{d}^{2}}}-2\,{\frac{e\sqrt{-{x}^{2}{e}^{2}+{d}^{2}}}{dx}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.83799, size = 128, normalized size = 1.6 \begin{align*} \frac{3 \, e^{2} x^{2} \log \left (-\frac{d - \sqrt{-e^{2} x^{2} + d^{2}}}{x}\right ) - \sqrt{-e^{2} x^{2} + d^{2}}{\left (4 \, e x + d\right )}}{2 \, d x^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] time = 5.45542, size = 224, normalized size = 2.8 \begin{align*} d^{2} \left (\begin{cases} - \frac{e \sqrt{\frac{d^{2}}{e^{2} x^{2}} - 1}}{2 d^{2} x} - \frac{e^{2} \operatorname{acosh}{\left (\frac{d}{e x} \right )}}{2 d^{3}} & \text{for}\: \frac{\left |{d^{2}}\right |}{\left |{e^{2}}\right | \left |{x^{2}}\right |} > 1 \\\frac{i}{2 e x^{3} \sqrt{- \frac{d^{2}}{e^{2} x^{2}} + 1}} - \frac{i e}{2 d^{2} x \sqrt{- \frac{d^{2}}{e^{2} x^{2}} + 1}} + \frac{i e^{2} \operatorname{asin}{\left (\frac{d}{e x} \right )}}{2 d^{3}} & \text{otherwise} \end{cases}\right ) + 2 d e \left (\begin{cases} - \frac{e \sqrt{\frac{d^{2}}{e^{2} x^{2}} - 1}}{d^{2}} & \text{for}\: \frac{\left |{d^{2}}\right |}{\left |{e^{2}}\right | \left |{x^{2}}\right |} > 1 \\- \frac{i e \sqrt{- \frac{d^{2}}{e^{2} x^{2}} + 1}}{d^{2}} & \text{otherwise} \end{cases}\right ) + e^{2} \left (\begin{cases} - \frac{\operatorname{acosh}{\left (\frac{d}{e x} \right )}}{d} & \text{for}\: \frac{\left |{d^{2}}\right |}{\left |{e^{2}}\right | \left |{x^{2}}\right |} > 1 \\\frac{i \operatorname{asin}{\left (\frac{d}{e x} \right )}}{d} & \text{otherwise} \end{cases}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.16385, size = 230, normalized size = 2.88 \begin{align*} -\frac{3 \, e^{2} \log \left (\frac{{\left | -2 \, d e - 2 \, \sqrt{-x^{2} e^{2} + d^{2}} e \right |} e^{\left (-2\right )}}{2 \,{\left | x \right |}}\right )}{2 \, d} + \frac{x^{2}{\left (\frac{8 \,{\left (d e + \sqrt{-x^{2} e^{2} + d^{2}} e\right )} e^{4}}{x} + e^{6}\right )}}{8 \,{\left (d e + \sqrt{-x^{2} e^{2} + d^{2}} e\right )}^{2} d} - \frac{{\left (\frac{8 \,{\left (d e + \sqrt{-x^{2} e^{2} + d^{2}} e\right )} d e^{8}}{x} + \frac{{\left (d e + \sqrt{-x^{2} e^{2} + d^{2}} e\right )}^{2} d e^{6}}{x^{2}}\right )} e^{\left (-8\right )}}{8 \, d^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]